
var game_file_list = [
    //以下为自动修改，请勿修改
    //----auto game_file_list start----
	"libs/modules/egret/egret.js",
	"libs/modules/egret/egret.native.js",
	"libs/modules/game/game.js",
	"libs/modules/game/game.native.js",
	"libs/modules/tween/tween.js",
	"libs/modules/res/res.js",
	"libs/modules/eui/eui.js",
	"bin-debug/Main.js",
	"bin-debug/common/BaseClass.js",
	"bin-debug/common/Log.js",
	"bin-debug/common/RESManager.js",
	"bin-debug/common/Resource.js",
	"bin-debug/common/StringBuffer.js",
	"bin-debug/common/adapter/AssetAdapter.js",
	"bin-debug/common/adapter/ThemeAdapter.js",
	"bin-debug/core/mvc/Actor.js",
	"bin-debug/core/mvc/Context.js",
	"bin-debug/core/mvc/controller/Controller.js",
	"bin-debug/core/mvc/controller/load/LoadController.js",
	"bin-debug/core/mvc/view/BaseEuiView.js",
	"bin-debug/core/mvc/view/CommonViewManager.js",
	"bin-debug/core/mvc/view/load/LoadingView.js",
	"bin-debug/core/sound/BaseSound.js",
	"bin-debug/core/sound/SoundBackground.js",
	"bin-debug/core/sound/SoundEffect.js",
	"bin-debug/core/static/Global.js",
	"bin-debug/module/App.js",
	"bin-debug/module/AppData.js",
	"bin-debug/module/CMDEvent.js",
	"bin-debug/module/ControllerList.js",
	"bin-debug/module/load/AppLoadController.js",
	"bin-debug/module/question/QuestionController.js",
	"bin-debug/module/question/QuestionView.js",
	"bin-debug/module/result/ResultController.js",
	"bin-debug/module/result/ResultView.js",
	"bin-debug/module/splash/SplashController.js",
	"bin-debug/module/splash/SplashView.js",
	"bin-debug/utils/DateUtils.js",
	"bin-debug/utils/DeviceUtils.js",
	"bin-debug/utils/MD5Utils.js",
	"bin-debug/utils/MathUtils.js",
	"bin-debug/utils/RandomUtils.js",
	"bin-debug/utils/StringUtils.js",
	//----auto game_file_list end----
];

var window = this;

egret_native.setSearchPaths([""]);

egret_native.requireFiles = function () {
    for (var key in game_file_list) {
        var src = game_file_list[key];
        require(src);
    }
};

egret_native.egretInit = function () {
    egret_native.requireFiles();
    egret.TextField.default_fontFamily = "/system/fonts/DroidSansFallback.ttf";
    //egret.dom为空实现
    egret.dom = {};
    egret.dom.drawAsCanvas = function () {
    };
};

egret_native.egretStart = function () {
    var option = {
        //以下为自动修改，请勿修改
        //----auto option start----
		entryClassName: "Main",
		frameRate: 60,
		scaleMode: "fixedNarrow",
		contentWidth: 720,
		contentHeight: 1154,
		showPaintRect: false,
		showFPS: false,
		fpsStyles: "x:0,y:0,size:30,textColor:0x00c200,bgAlpha:0.9",
		showLog: false,
		logFilter: "",
		maxTouches: 2,
		textureScaleFactor: 1
		//----auto option end----
    };

    egret.native.NativePlayer.option = option;
    egret.runEgret();
    egret_native.Label.createLabel(egret.TextField.default_fontFamily, 20, "", 0);
    egret_native.EGTView.preSetOffScreenBufferEnable(true);
};